//5:求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
package ZUOYE0421;

import java.util.Scanner;

public class 更改作业5 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入一个数：");
		int num = in.nextInt();
		int s = 0;
		for (; num % 10 != num; num = num / 10) {
			s = (s + (num % 10)) * 10;
		}
		System.out.println(s + num + 1024);

	}

}
